home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / make-367.lha / make-3.67 / make.diff < prev    next >
Text File  |  1993-05-24  |  6KB  |  223 lines

  1. diff -2cwr make-3.67/arscan.c amiga-make-3.67/arscan.c
  2. *** make-3.67/arscan.c    Wed May 12 21:05:03 1993
  3. --- amiga-make-3.67/arscan.c    Sun May 23 20:02:39 1993
  4. ***************
  5. *** 23,26 ****
  6. --- 23,29 ----
  7.   #include <sys/file.h>
  8.   #endif
  9. + #ifdef amigados
  10. + #include <stdlib.h>
  11. + #endif
  12.  
  13.   #ifndef NO_ARCHIVES
  14. diff -2cwr make-3.67/config.h amiga-make-3.67/config.h
  15. *** make-3.67/config.h    Mon May 24 01:52:28 1993
  16. --- amiga-make-3.67/config.h    Sun May 23 20:10:00 1993
  17. ***************
  18. *** 27,31 ****
  19.  
  20.   /* Define if your C compiler doesn't accept -c and -o together.  */
  21. ! #define NO_MINUS_C_MINUS_O 1
  22.  
  23.   /* Define as the return type of signal handlers (int or void).  */
  24. --- 27,31 ----
  25.  
  26.   /* Define if your C compiler doesn't accept -c and -o together.  */
  27. ! #undef NO_MINUS_C_MINUS_O
  28.  
  29.   /* Define as the return type of signal handlers (int or void).  */
  30. ***************
  31. *** 35,39 ****
  32.      argument and the buffer pointer as the third, as on System V
  33.      before release 3.    */
  34. ! #define SETVBUF_REVERSED 1
  35.  
  36.   /* Define if you have the ANSI C header files.  */
  37. --- 35,39 ----
  38.      argument and the buffer pointer as the third, as on System V
  39.      before release 3.    */
  40. ! #undef SETVBUF_REVERSED
  41.  
  42.   /* Define if you have the ANSI C header files.    */
  43. diff -2cwr make-3.67/configure amiga-make-3.67/configure
  44. *** make-3.67/configure Mon May 24 01:29:46 1993
  45. --- amiga-make-3.67/configure    Sun May 23 01:01:41 1993
  46. ***************
  47. *** 127,131 ****
  48.   if test -z "$CC"; then
  49.     # Extract the first word of `gcc', so it can be a program name with args.
  50. !   set dummy gccv; word=$2
  51.     echo checking for $word
  52.     IFS="${IFS=   }"; saveifs="$IFS"; IFS="${IFS}:"
  53. --- 127,131 ----
  54.   if test -z "$CC"; then
  55.     # Extract the first word of `gcc', so it can be a program name with args.
  56. !   set dummy gcc; word=$2
  57.     echo checking for $word
  58.     IFS="${IFS=         }"; saveifs="$IFS"; IFS="${IFS}:"
  59. ***************
  60. *** 133,137 ****
  61.       test -z "$dir" && dir=.
  62.       if test -f $dir/$word; then
  63. !    CC="gccv"
  64.     break
  65.       fi
  66. --- 133,137 ----
  67.       test -z "$dir" && dir=.
  68.       if test -f $dir/$word; then
  69. !    CC="gcc"
  70.     break
  71.       fi
  72. diff -2cwr make-3.67/dir.c amiga-make-3.67/dir.c
  73. *** make-3.67/dir.c    Fri May 14 22:41:07 1993
  74. --- amiga-make-3.67/dir.c    Sun May 23 20:04:06 1993
  75. ***************
  76. *** 488,492 ****
  77. --- 488,496 ----
  78.   /* Hooks for globbing.    */
  79.  
  80. + #ifndef amigados
  81.   #include <glob.h>
  82. + #else
  83. + #include "glob.h"
  84. + #endif
  85.  
  86.   /* Structure describing state of iterating through a directory hash table.  */
  87. diff -2cwr make-3.67/function.c amiga-make-3.67/function.c
  88. *** make-3.67/function.c    Wed May 12 19:44:41 1993
  89. --- amiga-make-3.67/function.c    Mon May 24 01:20:25 1993
  90. ***************
  91. *** 22,25 ****
  92. --- 22,28 ----
  93.   #include "commands.h"
  94.   #include "job.h"
  95. + #ifdef amigados
  96. + #include <stdlib.h>
  97. + #endif
  98.  
  99.   static char *string_glob ();
  100. diff -2cwr make-3.67/getopt.c amiga-make-3.67/getopt.c
  101. *** make-3.67/getopt.c    Fri May  7 19:29:58 1993
  102. --- amiga-make-3.67/getopt.c    Sun May 23 19:52:10 1993
  103. ***************
  104. *** 53,56 ****
  105. --- 53,59 ----
  106.  
  107.   #include <stdio.h>
  108. + #ifdef amigados
  109. + #include <string.h>
  110. + #endif
  111.  
  112.   /* Comment out all this code if we are using the GNU C Library, and are not
  113. diff -2cwr make-3.67/job.c amiga-make-3.67/job.c
  114. *** make-3.67/job.c    Wed May 12 19:20:45 1993
  115. --- amiga-make-3.67/job.c    Sun May 23 19:53:55 1993
  116. ***************
  117. *** 24,28 ****
  118. --- 24,32 ----
  119.  
  120.   /* Default path to search for executables.  */
  121. + #ifndef amigados
  122.   static char default_path[] = ":/bin:/usr/bin";
  123. + #else
  124. + static char default_path[] = ":/bin:/usr/local/bin";
  125. + #endif
  126.  
  127.   /* Default shell to use.  */
  128. ***************
  129. *** 242,249 ****
  130.   #ifdef    WAIT_NOHANG
  131.       if (!block)
  132. !        pid = WAIT_NOHANG (&status);
  133.       else
  134.   #endif
  135. !        pid = wait (&status);
  136.  
  137.       if (pid < 0)
  138. --- 246,253 ----
  139.   #ifdef    WAIT_NOHANG
  140.       if (!block)
  141. !        pid = WAIT_NOHANG ((int *)&status);
  142.       else
  143.   #endif
  144. !        pid = wait ((int *)&status);
  145.  
  146.       if (pid < 0)
  147. ***************
  148. *** 988,992 ****
  149.   #endif
  150.     if (groups != 0 && ngroups == -1)
  151. !    ngroups = getgroups (ngroups_max, groups);
  152.   #endif    /* Have getgroups.  */
  153.  
  154. --- 992,996 ----
  155.   #endif
  156.     if (groups != 0 && ngroups == -1)
  157. !    ngroups = getgroups (ngroups_max, (int *)groups);
  158.   #endif    /* Have getgroups.  */
  159.  
  160. diff -2cwr make-3.67/main.c amiga-make-3.67/main.c
  161. *** make-3.67/main.c    Sat May 22 20:20:16 1993
  162. --- amiga-make-3.67/main.c    Sun May 23 19:54:28 1993
  163. ***************
  164. *** 23,26 ****
  165. --- 23,29 ----
  166.   #include "job.h"
  167.   #include "getopt.h"
  168. + #ifdef amigados
  169. + #include <stdlib.h>
  170. + #endif
  171.  
  172.  
  173. diff -2cwr make-3.67/read.c amiga-make-3.67/read.c
  174. *** make-3.67/read.c    Wed May 19 21:15:51 1993
  175. --- amiga-make-3.67/read.c    Sun May 23 19:55:24 1993
  176. ***************
  177. *** 82,89 ****
  178. --- 82,95 ----
  179.   static char *default_include_directories[] =
  180.     {
  181. + #ifndef amigados
  182.       INCLUDEDIR,
  183.       "/usr/gnu/include",
  184.       "/usr/local/include",
  185.       "/usr/include",
  186. + #else
  187. +     "/gcc/include",
  188. +     "/gcc/g++-include",
  189. +     "/gcc/os-include",
  190. + #endif
  191.       0
  192.     };
  193. diff -2cwr make-3.67/remake.c amiga-make-3.67/remake.c
  194. *** make-3.67/remake.c    Mon Apr 12 20:52:45 1993
  195. --- amiga-make-3.67/remake.c    Sun May 23 19:56:38 1993
  196. ***************
  197. *** 964,970 ****
  198. --- 964,975 ----
  199.     static char *dirs[] =
  200.       {
  201. + #ifndef amigados
  202.     "/lib",
  203.     "/usr/lib",
  204.     LIBDIR,         /* Defined by configuration.  */
  205. + #else
  206. +    "/gcc/lib",
  207. +    "/gcc/blib",
  208. + #endif
  209.     0
  210.       };
  211. ***************
  212. *** 974,978 ****
  213. --- 979,987 ----
  214.  
  215.     /* Buffer to construct possible names in.  */
  216. + #ifndef amigados
  217.     char *buf = xmalloc (sizeof (LIBDIR) + 8 + strlen (libname) + 4 + 2 + 1);
  218. + #else
  219. +   char *buf = xmalloc (8 + strlen (libname) + 9 + 2 + 1);
  220. + #endif
  221.     char *file, **dp;
  222.  
  223.